#ifndef __DALELIB_IMAGE_H__
#define __DALELIB_IMAGE_H__

#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <vector>
using namespace std;

namespace dalelib
{

class Image
{
private:

	int _width;
	int _height;
	int _bytes_per_pixel;
	vector<unsigned char> _pixel_data;

public:

	int getWidth() { return _width; }
	int getHeight() { return _height; }
	int getBpp() { return _bytes_per_pixel; }
	int load(const char* _Name, const bool _Keep=false);
	v3 sample( float _U, float _V );

};

} // namespace dalelib

#endif
